/* 
 * File:   thu_tu_constructor_with_inheritance_virtual.cpp
 * Author: tandaica0612
 *
 * Created on January 11, 2009, 5:33 PM
 */

#include <stdlib.h>
#include <iostream>
using namespace std;

class A{
public:
    A(){
        cout << "A" << endl;
    }
};
class B: public virtual A{
public:
    B(){
        cout << "B" << endl;
    }
};
class C:public virtual A{
public:
    C(){
        cout << "C" << endl;
    }
};
class D:public B,public C{
public:
    D(){
        cout << "D" << endl;
    }
};
/*
 * 
 */
/*
int main(int argc, char** argv) {
    D d;
    return (EXIT_SUCCESS);
}
 **/
/*
A
B
C
D
 **/
